package dao

import (
	"gorm.io/driver/sqlite"
	"gorm.io/gorm"
)

var (
	DB *gorm.DB
)


func DB_Init() (err error){
    DB, err = gorm.Open(sqlite.Open("./medal.db"), &gorm.Config{})
    if err != nil {
        panic("failed to connect database")
    }
   return
}
